const baseUrl = ""

export default function(url, data) {
	return new Promise((resolve, reject) => {
		let token = ""
		uni.request({
			url: baseUrl + url,
			data,
			header: {
				Authorization: token
			},
			success: (res) => {
				resolve(res.data)
			},
			fail: (err) => {
				reject(err)
			},
			complete: () => {

			}
		})
	})
}
